DISCUSSION
You can call the
ATSUCalculateBaselineDeltas function to calculate the distances from a specified baseline type to each of other baseline types in a specified style object.
ATSUCalculateBaselineDeltas takes into account font and text size when performing these calculations.
ATSUI uses these distances to determine the cross-stream shifting to apply to the glyphs in a style run. You can use the resulting array to set or obtain the optimal baseline positions of lines in a text layout object identified by the text layout attribute tag kATSULineBaselineValuesTag. For a description of this tag constant, see
Text Layout Attribute Tag Constants.